<%
DIRECTIVE SAFE_OUTPUT_OPEN;
var headContent = {
include("/pages/template/head.html"){}
%>
<script type="text/javascript">
    var oper = {
        save:function(id){
            if(!validForm()) {
                return false;
            }
            var url = 'system/productvas/save/'+id;
            form1.action = url;
            form1.submit();
            return true;
        }
    };

</script>

<%
};
var bodyContent = {
%>
<form name="form1" action="" method="post" class="form-horizontal"
	  role="form" >
	  
	  
	  	<% if(isEmpty(model.ids)) { %>
		<% } %>
	<table class="table">
		<% // 列表头部 %>
		<tr>
			<td>产品ID</td>
			<td>
				<input class="form-control" type="text" id = "vaspids" name="model.ids"
					   value="${model.ids}" valid="vtext" validname="平台产品ID" />
			</td>
		</tr>
		<tr>
			<td>产品名称</td>
			<td>
				<input class="form-control" type="text" name="model.vasProdName"
					   value="${model.vasProdName}" valid="vtext" validname="产品名称"  />
			</td>
		</tr>
		
		
		<tr>
			<td>颗粒度</td>
			<td>
				<input class="form-control" type="text" name="model.productSize" value="${model.productSize}"  />
			</td>
		</tr>
		<tr>
			<td>产品价格</td>
			<td>
				<input class="form-control" type="text" name="model.productPrice" value="${model.productPrice}"  />
			</td>
		</tr>
		<tr>
			<td>状态</td>
			<td>
				<select name="model.status" class="form-control" valid="vselect" >
					<option value="-1">--请选择--</option>
					<option value="0" ${model.status=="0"?"selected":"" }>有效</option>
					<option value="1" ${model.status=="1"?"selected":"" }>失效</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>运营商</td>
			<td>
				<select name="model.operatorType" class="form-control" valid="vselect" >
					<option value="-1">--请选择--</option>
					<option value="1" ${model.operatorType=="1"?"selected":"" }>中国电信</option>
					<option value="2" ${model.operatorType=="2"?"selected":"" }>中国移动</option>
					<option value="3" ${model.operatorType=="3"?"selected":"" }>中国联通</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>产品描述</td>
			<td>
				<textarea class="form-control" rows="3" cols="30" name="model.vasProdDesc">${model.vasProdDesc}</textarea>
			</td>
		</tr>
	</table>

	<div style="height: 50px;clear: both;">&nbsp;</div>
	<nav class="navbar navbar-default navbar-fixed-bottom">
		<div class="container" style="padding: 5px 0px 5px 0px;text-align: center;">
			<button class="btn btn-primary" onclick="oper.save($('#vaspids').val());return false;">保 存</button>
			<button class="btn btn-default" onclick="closeIframe();return false;">关 闭</button>
		</div>
	</nav>
</form>
<%}; %>

<% layout("/pages/template/_layout.html",{head:headContent,body:bodyContent}){ %>
DIRECTIVE SAFE_OUTPUT_CLOSE;
<%} %>